import request from '@/utils/request'

// 查询股票月线列表
export function listMonthly(query) {
  return request({
    url: '/stock/monthly/list',
    method: 'get',
    params: query
  })
}

// 查询股票月线列表(不分页)
export function listAllMonthly(query) {
  return request({
    url: '/stock/monthly/all',
    method: 'get',
    params: query
  })
}

// 查询股票月线详细
export function getMonthly(id) {
  return request({
    url: '/stock/monthly/' + id,
    method: 'get'
  })
}

// 新增股票月线
export function addMonthly(data) {
  return request({
    url: '/stock/monthly',
    method: 'post',
    data: data
  })
}

// 修改股票月线
export function updateMonthly(data) {
  return request({
    url: '/stock/monthly',
    method: 'put',
    data: data
  })
}

// 删除股票月线
export function delMonthly(id) {
  return request({
    url: '/stock/monthly/' + id,
    method: 'delete'
  })
}
